home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / WTJ208.ZIP / FRANTZ / CPP / CTARGET.CPP next >
C/C++ Source or Header  |  1993-04-11  |  2KB  |  88 lines

  1. // target.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "ctarget.h"
  6.  
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CTargetApp
  14.  
  15. BEGIN_MESSAGE_MAP(CTargetApp, CWinApp)
  16.     //{{AFX_MSG_MAP(CTargetApp)
  17.     //}}AFX_MSG_MAP
  18.     // Standard file based document commands
  19. END_MESSAGE_MAP()
  20.  
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CTargetApp construction
  23.  
  24. CTargetApp::CTargetApp()
  25. {
  26. }
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // The one and only CTargetApp object
  30.  
  31. CTargetApp NEAR theApp;
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CTargetApp initialization
  35.  
  36. BOOL CTargetApp::InitInstance()
  37. {
  38.     SetDialogBkColor();        // set dialog background color to gray
  39.     EnableVBX();               // Initialize VBX support
  40.     return TRUE;
  41. }
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CTargetApp override the run method
  45.  
  46. int CTargetApp::Run()
  47. {
  48.     CDlg dlg;
  49.     dlg.DoModal();    // Our main window is a dialog box
  50.     return 0;
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // VB-Event registration
  55. // (calls to AfxRegisterVBEvent will be placed here by ClassWizard)
  56.  
  57. //{{AFX_VBX_REGISTER_MAP()
  58. //}}AFX_VBX_REGISTER_MAP
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CTargetApp commands
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CDlg dialog
  64.  
  65. CDlg::CDlg(CWnd* pParent /*=NULL*/)
  66.     : CDialog(CDlg::IDD, pParent)
  67. {
  68.     //{{AFX_DATA_INIT(CDlg)
  69.     m_target = NULL;
  70.     //}}AFX_DATA_INIT
  71. }
  72.  
  73. void CDlg::DoDataExchange(CDataExchange* pDX)
  74. {
  75.     CDialog::DoDataExchange(pDX);
  76.     //{{AFX_DATA_MAP(CDlg)
  77.     DDX_VBControl(pDX, Target, m_target);
  78.     //}}AFX_DATA_MAP
  79. }
  80.  
  81. BEGIN_MESSAGE_MAP(CDlg, CDialog)
  82.     //{{AFX_MSG_MAP(CDlg)
  83.     //}}AFX_MSG_MAP
  84. END_MESSAGE_MAP()
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87. // CDlg message handlers
  88.